/** When your routing table is too long, you can split it into small modules **/

import Layout from '@/layout'

const systemRouter = {
    path: '/preserve',
    component: Layout,
    redirect: '/preserve/index',
    name: 'preserve',
    meta: {
        title: '设备保养',
        icon: 'table'
    },
    children: [

        {
            path: 'preserve',
            component: () =>
                import ('@/views/plant-check/plan'),
            name: 'preserve',
            meta: { title: '设备保养-保养计划' },

        },

        {
            path: 'edit/:id',
            component: () =>
                import ('@/views/plant-check/component/add-plan/index'),
            name: 'preserve',
            meta: { title: '设备保养-新增保养计划' }
        },
        {
            path: 'detail/:id',
            component: () =>
                import ('@/views/plant-check/component/add-plan/detail'),
            name: 'preserve',
            meta: { title: '设备保养-保养计划详情' }
        },
        {
            path: 'program',
            component: () =>
                import ('@/views/plant-check/program'),
            name: 'preserve',
            meta: { title: '设备保养-保养项管理' }
        },
        {
            path: 'record',
            component: () =>
                import ('@/views/plant-check/record'),
            name: 'preserve',
            meta: { title: '设备保养-保养记录' }
        },
        {
            path: 'recordDetail/:id',
            component: () =>
                import ('@/views/plant-check/component/addRecord/detail'),
            name: 'preserve',
            meta: { title: '设备保养-保养记录详情' }
        }
    ]
}
export default systemRouter